package org.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
public class RouteController {
    @GetMapping("/")
    public void loginPage(HttpServletResponse response) throws IOException {
        response.sendRedirect("/front/page/login.html");
    }

    @GetMapping("/backend")
    public void loginPageBackend(HttpServletResponse response) throws IOException {
        response.sendRedirect("/backend/page/login/login.html");
    }
}
